vulkan: Our data is premultiplied, don't pretend it isn't
authorBenjamin Otte <otte@redhat.com>
Tue, 13 Mar 2018 15:53:31 +0000 (16:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Mar 2018 05:04:43 +0000 (06:04 +0100)
If the backend can't do premultiplied alpha, better make the backend treat

gdk/gdkvulkancontext.c

index 83d5047a8023b857b1d643d334599c9396c7c25e..3cd70dd8682584b03e2627fb0c5740aed3303b8d 100644 (file)
@@ -276,8 +276,6 @@ gdk_vulkan_context_check_swapchain (GdkVulkanContext  *context,
 
   if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR)
     composite_alpha = VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR;
-  else if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR)
-    composite_alpha = VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR;
   else if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR)
     {
       /* let's hope the backend knows what it's doing */